#!/bin/mksh

# begone, xfce4
# you will be remembered
# alias sx='startxfce4'

alias a=alias

# the necessary
a vim=vis
a v=vis
a where='pwd'
a rv=rover
a please='fc -e "sed -i -e \"s/^/sudo /\""'
a MOVE='fc -e "sed -i -e \"s/^mv/mkdirmv /\""'
a shutdown='sudo shutdown'
a reboot='sudo reboot'
a poweroff='sudo poweroff'
a clip='xclip -sel clip'
a plic='xclip -sel clip -o'
a l=ls
a ll='ls -l'
a lla='ls -la'

# git
a gb='git branch'
a gs='git status'
a gd='git diff'
a ga='git add'
a gl='git log'
a gc='git commit'
a gp='git pull'
a gP='git push'
a gf='git fetch'
a gdc='git diff --cached'

# the luxury stuff
a {cc,cll,clear,clar,clea}=clear
a h='head -n 15'
a t='tail -n 15'
a xi='sudo xbps-install'
a xq='xbps-query'
a xr='sudo xbps-remove'
a tornewexitnode="(echo authenticate '""'; echo signal newnym; echo quit) | nc localhost 9050"
a present='(${HOME}/packages/presentationterminal/st &> /dev/null &)'
a s='(st 2> /dev/null &)'
a e='(pcmanfm 2> /dev/null &)'
a weather='curl wttr.in'
a pull-latest="strlst -c pull -f $(date +%Y-%m).ms -s"
a push-latest="strlst -c push -f $(date +%Y-%m).ms"
a de-layout='setxkbmap de,at'
a en-layout='setxkbmap us -variant intl'

# fun
a heart='printf "%b\n" "\xe2\x9d\xa4"'
a worldline='echo 1.048596'
a elpsykongroo='echo "El Psy Kongroo" | base64 | clip && plic'
a month="echo $(date +%Y-%m)"

# clutch
#a optirun='LD_PRELOAD=/usr/lib/libGL.so __GLVND_DISALLOW_PATCHING=1 optirun'
#a kid3-qt='(QT_SCALE_FACTOR=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 kid3-qt &> /dev/null &)'
a wpa_gui='(QT_SCALE_FACTOR=1.5 QT_AUTO_SCREEN_SCALE_FACTOR=0 wpa_gui &> /dev/null &)'
a motherbaord='sudo dmidecode -t 2'
a deflacd320='deflac . -b320 && rm *flac'

# work
. ${HOME}/.local/share/${USER}/.work-aliases

# home
. ${HOME}/.local/share/${USER}/.home-aliases
